import React, {Component} from 'react';
import OrderManager from "./OrderManager";
import Userinfos from "./Userinfos";
import MyCars from "./MyCars";
import {TabNavigator} from 'react-navigation';

const App = TabNavigator({
    OrderManager: {
        screen: OrderManager,
        showIcon:true,
    },
    MyCars: {
        screen: MyCars,
        showIcon:true,
    },
    Userinfos: {
        screen: Userinfos,

    },
}, {
    tabBarPosition: 'bottom',

    animationEnabled: true,
    tabBarOptions: {
        labelStyle: {
            fontSize: 12,
            color:'#000000'
        },

        // tabStyle: {
        //     width: 100,
        // },
        swipeEnabled:false,
        style: {
            backgroundColor: '#FFFFFF',//android 中有默认蓝色 。IOS中没有
        },
        activeTintColor: '#e91e63',
        showIcon:true,//在Android平台不显示icon IOS  默认就显示

    },


});
export default class Index extends Component{
    static navigationOptions = {
        title: '首页',
        headerTintColor:'green',
        gesturesEnabled:true,  //android 默认不支持滑动返回,IOS默认就支持

    };
    render(){
        return(
          <App/>
        );
    };
}